<#include "/included/view_meta_global.ftl">
<body>
<script>
function signup(){
	if(!$("#email")[0].value){
		$("#warnMessage")[0].innerHTML="Email is required";
		return false;
	}else if(!$("#password")[0].value){
		$("#warnMessage")[0].innerHTML="Password is required";
		return false;
	}else if(!$("#name")[0].value){
		$("#warnMessage")[0].innerHTML="名号 is required";
		return false;
	}else if(emailCheck($("#email")[0])== false){
		$("#warnMessage")[0].innerHTML="Email has wrong format";
		return false;
	}else{
		$("#signUp").attr("value","loading").attr("disabled","disabled");
		return true;
	}
}
$(document).ready(function(){
	$("#email").focus();
})
</script>
<div id="maxw">
<!-- header part -->
<#include "/included/header_global.ftl">
<!-- end header part -->

<div id="leftpart">
<form action="/codebush/support/signup?&thanks=true"  onSubmit="return signup();" method="post" name="signupform">
<div style="padding-left: 50px">
	<input type=hidden name="redir"><br><div class="warnMessage" id="warnMessage">${warnMessage?if_exists}</div>
	你的email地址:<br><input  type=text maxLength=60 size=24 id="email" name="email">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/codebush/go/?url=support/signin">若已注册请点此登录</a><br><br>
	给自己设一个密码:<br><input type=password maxLength=30 size=16 id="password" name="password"><br><br>
	给自己设一个响亮的名号:<br><input type=text maxLength=30 size=16 id="name" name="name"><br><br>
	<#if Session.signUpTimes?exists && Session.signUpTimes >= 2 >
	<img src="/codebush/verifiedImage.asm" /><br><input maxLength=4 type=text size=16 id=verifiedCode name=verifiedCode><br>
	</#if>
	<input type=submit onClick="signup()" value="完成注册" name="sign up" id="signUp">
</div>
</form>
</div>
<!-- 右半边 right side part -->
<div id="rightpart"><#include "/included/rightside_global.ftl"></div>
<!-- end 右半边  right side part -->

<!-- 底部 footer  -->
<#include "/included/footer_global.ftl">
<!-- end  底部 footer  -->
</div><!-- end  maxw  -->
</body>
</html>